import http from "@/utils/http";
import type {  questionParamsType, searchType } from "@/utils/type";



//获取单个问卷详情
export const getQuestionApi = (id:string)=> http.get(`question/${id}`);

//获取问卷列表
export const getQuestionListApi = (opt:Partial<searchType>)=> http.get('question',{params:opt});

//更新问卷
export const updateQuestionApi = (id:string,data:questionParamsType)=> http.put(`question/${id}`,data);